/**
 * 首页模块接口列表
 */

import base from './base'; // 导入接口域名列表
import axios from '@/request/http'; // 导入http中创建的axios实例
import qs from 'qs'; // 根据需求是否导入qs模块

const home = {
	//banner
	bannerAds(params) {
		return axios.post(`${base.sq}api/index/bannerAds`, qs.stringify(params));

	},
	//站点搜索
	siteSearch(params) {
		return axios.post(`${base.sq}api/index/siteSearch`, qs.stringify(params));

	},
	//站点信息
	siteInfo(params) {
		return axios.post(`${base.sq}api/user/siteInfo`, qs.stringify(params));

	},
	//四级站点
	siteFive(params) {
		return axios.post(`${base.sq}api/common/siteFive`, qs.stringify(params));

	},
	//共享经济服务
	navigation(params) {
		return axios.post(`${base.sq}api/index/navigation`, qs.stringify(params));

	},
	//站点主导航
	footNavigation(params) {
		return axios.post(`${base.sq}api/index/footNavigation`, qs.stringify(params));

	},
	//首页导航
	nav(params) {
		return axios.post(`${base.sq}api/index/nav`, qs.stringify(params));

	},
	//专题
	special(params) {
		return axios.post(`${base.sq}api/index/special`, qs.stringify(params));

	},
	//一级导航文章列表
	navGetArticle(params) {
		return axios.post(`${base.sq}api/index/navGetArticle`, qs.stringify(params));

	},
	//分类文章列表
	articleList(params) {
		return axios.post(`${base.sq}api/index/articleList`, qs.stringify(params));

	},
	//文章详情
	articleDetail(params) {
		return axios.post(`${base.sq}api/index/articleDetail`, qs.stringify(params));

	},
	//文章评论列表
	commentList(params) {
		return axios.post(`${base.sq}api/article/commentList`, qs.stringify(params));

	},
	//发布评论
	commentAdd(params) {
		return axios.post(`${base.sq}api/article/commentAdd`, qs.stringify(params));

	},
	//友情链接
	friendsLink() {
		return axios.post(`${base.sq}api/index/friendsLink`);

	},
	//第一篇文章
	firstArticle(params) {
		return axios.post(`${base.sq}api/index/firstArticle`, qs.stringify(params));

	},
	//投票/活动/评议列表
	voteList(params) {
		return axios.post(`${base.sq}api/vote/voteList`, qs.stringify(params));

	},
	//活动详情
	activeVoteDetail(params) {
		return axios.post(`${base.sq}api/vote/activeVoteDetail`, qs.stringify(params));

	},
	//投票/活动操作
	activeVoteBet(params) {
		return axios.post(`${base.sq}api/vote/activeVoteBet`, qs.stringify(params));

	},
	//评议详情
	deliberateVote(params) {
		return axios.post(`${base.sq}api/vote/deliberateVote`, qs.stringify(params));

	},
	//评议操作
	deliberateBet(params) {
		return axios.post(`${base.sq}api/vote/deliberateBet`, qs.stringify(params));

	},
	//竞选详情
	campaignVote(params) {
		return axios.post(`${base.sq}api/vote/campaignVote`, qs.stringify(params));

	},
	//竞选投票
	campaignBet(params) {
		return axios.post(`${base.sq}api/vote/campaignBet`, qs.stringify(params));

	},
	//征集列表
	collect(params) {
		return axios.post(`${base.sq}api/vote/collect`, qs.stringify(params));

	},
	//征集详情
	collectDetail(params) {
		return axios.post(`${base.sq}api/vote/collectDetail`, qs.stringify(params));

	},
	//征集回复
	answered(params) {
		return axios.post(`${base.sq}api/vote/answered`, qs.stringify(params));

	},
	//征集回复列表
	collectBack(params) {
		return axios.post(`${base.sq}api/vote/collectBack`, qs.stringify(params));

	},
	//留言
	guest(params) {
		return axios.post(`${base.sq}api/user/guest`, qs.stringify(params));

	},
	//回答问题
	askanswered(params) {
		return axios.post(`${base.sq}api/asking/answered`, qs.stringify(params));

	},
	//回复列表
	back(params) {
		return axios.post(`${base.sq}api/asking/back`, qs.stringify(params));

	},
	//问问列表
	askingList(params) {
		return axios.post(`${base.sq}api/asking/askingList`, qs.stringify(params));

	},
	//提问
	addAsking(params) {
		return axios.post(`${base.sq}api/asking/addAsking`, qs.stringify(params));

	},
	//任务列表
	task(params) {
		return axios.post(`${base.sq}api/asking/task`, qs.stringify(params));

	},
	//系统最新公告
	newNotice(params) {
		return axios.post(`${base.sq}api/index/newNotice`, qs.stringify(params));

	},
	//文章列表
	areaArticleList(params) {
		return axios.post(`${base.sq}api/article/areaArticleList`, qs.stringify(params));

	}





	// 其他接口…………
}

export default home;
